<template>
  <div class="Version1">
    <div class="logo">
      <img :src="require('@/assets/logo.png')" >
    </div>
    <div class="type">
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
import { Dropdown } from 'ant-design-vue'
import { mapGetters } from 'vuex'
Vue.use(Dropdown)
export default {
	computed: {
    ...mapGetters({
      userInfo: 'userInfo'
    })
  },
	components: {
	},
	provide () {
		return {
			meunClick: this.meunClick
		}
	},
  created () {
	},
	beforeDestroy () {
	},
  methods: {
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="less">
.menuSpan{
  display: inline-block;
  width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
// .overlayClassName {
// 	ul{
// 		width: 120px;
// 	}
// 	.ant-dropdown-menu-submenu{
// 		>div{
// 				color: #2B50B0;
// 			}
// 	}
// 	.ant-dropdown-menu-item-active{
// 		background-color: #4A8DF0 !important;
// 		color: #fff !important;
// 	}
// 	.ant-dropdown-menu-item{
// 		color: #2B50B0;
// 	}
// 	.ant-dropdown-menu-submenu-active{
// 			>div{
// 				background-color: #4A8DF0;
// 				color: #fff;
// 			}
// 		}
// }
</style>
<style lang='less' scoped>
@import "../../compact.theme.less";
.Version1{
    padding: 0 28px;
    position: absolute;
    z-index: 9;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(0deg, @primary-4 0%, @primary-color  100%);
    box-shadow: 0 0 5px  @primary-4;
    display: flex;
    align-items: center;
    >.logo{
        color:#fff;
        margin-right: 50px;
        span{
          cursor: pointer;
          font-size: 22px;
        }
        >img{
            vertical-align: bottom;
            width: 36px;
            height: 30px;
            margin-right: 10px;
        }
    }
    >.type{
        padding: 0 10px;
        overflow: hidden;
        flex:1;
        color: #fff;
        height: 100%;
        display: flex;
        .dropdown{
          display: flex;
          align-items: center;
            cursor: pointer;
            height: 100%;
            width: 120px;
            color: #fff;
            >span{
              margin-left: 20px;
            }
            >div{
                width: 100%;
                height: 36px;
                border-radius: 8px;
                transform: skewX(-10deg);
                >p{
                    padding: 0 10px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    transform: skewX(10deg);
                    line-height: 36px;
                    text-align: center;
                    i{
                        margin-left: 10px;
                    }
                }
            }
        }
        .active{
            background: #F5F7F9;
            color: @primary-color;
            i{
                color: @primary-color
                ;
            }
        }
    }
    >.set{
        color: #fff;
        width: 300px;
        display: flex;
        justify-content: space-between;
        .dropdown,.skin{
            cursor:pointer;
            min-width: 76px;
            height: 30px;
            border: 1px solid #FFFFFF;
            border-radius: 15px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            >img{
                width: 18px;
                height: 18px;
            }
        }
    }
}
</style>
